﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Huioo.Learning.Agile.Payroll.Domain;

namespace Huioo.Learning.Agile.Payroll.Application
{
    public abstract class ChangeMethodTransaction : ChangeEmployeeTransaction
    {
        public ChangeMethodTransaction(int id)
            : base(id)
        { }
        protected override void Change(Employee e)
        {
            e.Method = PaymentMethod;
        }
        protected abstract PaymentMethod PaymentMethod { get; }
    }
}
